package com.example.test.map;

import java.util.Map;

import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

import com.example.map.DynamicMapService;
import com.example.map.Myinterface;
import com.example.test.SpringTest;

public class Maptest extends SpringTest {
    @Autowired
	DynamicMapService m;
	@Autowired
	Map<String,Myinterface> exampleMap;
	@Test
	public void testMap(){
		for(Map.Entry<String, Myinterface>  entry : exampleMap.entrySet()){
			System.out.println("key= " + entry.getKey() + " and value= " + entry.getValue());
			
		}
	}
    
    
}
